package Text;

import java.util.Scanner;

public class Zhengshu {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入第一个整数：");
        int num1 = scanner.nextInt();
        System.out.println("请输入第二个整数：");
        int num2 = scanner.nextInt();
        int a1 = num1+num2;
        int a2 = num1-num2;
        System.out.println("两个整数之和为："+a1);
        System.out.println("两个整数之际差为:"+a2);

    }


}
